/**
 * Created by billy on 2016/12/19.
 */
import g from "../../global";
import LangPool from "./LangPool";
export var langPool = new LangPool(); //语言包数据池



export function initStaticData()
{
	
	var staticData = g.data.staticData;
	langPool.update(staticData["lang"]);
}

function initLang($staticData)
{
// 	langPool.init($staticData["lang/langList.json"]);
// 	(g.setLang = ($lang)=>
// 	{
// 		langPool.setLang($lang);
// 		g.langPool.setLang($staticData["lang/" + $lang + ".json"]);
// 	})(g.core.webParam.param.defaultLang);
}

export function clearAll()
{
	langPool.removeAll();

}
